{% extends "../base_adminlte.html" %}

{% block content %}
<div class="content-wrapper">
  <!-- Content Header (Page header) -->
    <div class="content-header">
    </div>

  <section class="content">
        <form  action="{% url 'systemsmod' %}?id={{ systems.id }}" method="post">
            <table style="border-collapse:separate; border-spacing: 0px 10px;
            margin-left: 400px;margin-top: 60px;align-content: center;">
                <tr style="height: 10px">
                    <td>系统</td>
                    <td><input type="text" name="systemname" value="{{ systems.systemname }}"  >
                       <label>{{ error.systemname.0 }}</label>
                  </td>
                </tr>
                <tr style="height: 10px">
                    <td>所属主系统</td>
                    <td><input type="text" name="supersystem" value="{{ systems.supersystem }}"  >
                       <label>{{ error.systemname.0 }}</label>
                  </td>
                </tr>
                <tr style="height: 10px">
                    <td>网络/系统类型</td>
                    <td><input type="text" name="network_system_type" value="{{ systems.network_system_type }}"  >
                       <label>{{ error.systemname.0 }}</label>
                  </td>
                </tr>
                <tr style="height: 10px">
                    <td>所属部门</td>
                    <td><input type="text" name="department" value="{{ systems.department }}"  >
                       <label>{{ error.systemname.0 }}</label>
                  </td>
                </tr>
                <tr>
                    <td>描述</td>
                    <td><textarea type="text" id="info" class="form-control" cols="60" rows="3" name="remark" >{{ systems.remark }}</textarea>
                       <label>{{ error.remark.0 }}</label>
                  </td>
                </tr>
                <tr>
                    <td>社会影响力等级</td>
                   <td><input type="text" name="social_influence_value" value="{{ systems.social_influence_value }}"  >
                       <label>{{ error.systemname.0 }}</label>
                  </td>
                </tr>
                <tr>
                    <td>社会影响力赋值依据</td>
                    <td><textarea type="text" id="info" class="form-control" cols="60" rows="3" name="social_influence_basis" >{{ systems.social_influence_basis }}</textarea>
                       <label>{{ error.remark.0 }}</label>
                  </td>
                </tr>
                <tr>
                    <td>规模和服务范围等级</td>
                    <td><input type="text" name="scale_service_scope_value" value="{{ systems.scale_service_scope_value }}"  >
                       <label>{{ error.systemname.0 }}</label>
                  </td>
                </tr>
                <tr>
                    <td>规模和服务范围赋值依据</td>
                    <td><textarea type="text" id="info" class="form-control" cols="60" rows="3" name="scale_service_scope_basis" >{{ systems.scale_service_scope_basis }}</textarea>
                       <label>{{ error.remark.0 }}</label>
                  </td>
                </tr>
                <tr>
                    <td>所提供服务重要性等级</td>
                    <td><input type="text" name="service_important_value" value="{{ systems.service_important_value }}"  >
                       <label>{{ error.systemname.0 }}</label>
                  </td>
                </tr>
                <tr>
                    <td>所提供服务重要性赋值依据</td>
                    <td><textarea type="text" id="info" class="form-control" cols="60" rows="3" name="service_important_basis" >{{ systems.service_important_basis }}</textarea>
                       <label>{{ error.remark.0 }}</label>
                  </td>
                </tr>
                <tr>
                    <td>安全等级值</td>
                    <td><input type="text" name="security_level_value" value="{{ systems.security_level_value }}"  >
                       <label>{{ error.systemname.0 }}</label>
                  </td>
                </tr>
                <tr>
                    <td>安全等级</td>
                   <td><input type="text" name="security_level" value="{{ systems.security_level }}"  >
                       <label>{{ error.systemname.0 }}</label>
                  </td>
                </tr>
                <tr>
                    <td>控制主机ip</td>
                    <td><input type="text" name="control_host" value="{{ systems.control_host }}" >
                       <label>{{ error.control_host.0 }}</label>
                  </td>
                </tr>
                <tr>
                    <td>agent用户</td>
                    <td><input type="text" name="agent_user" value="{{ systems.agent_user }}" >
                       <label>{{ error.agent_user.0 }}</label>
                  </td>
                </tr>
                <tr>
                    <td>agent密码</td>
                    <td><input type="password" name="agent_pass" value="{{ systems.agent_pass }}" >
                       <label>{{ error.agent_pass.0 }}</label>
                  </td>
                </tr>
                <tr>
                    <td>ssh用户</td>
                    <td><input type="text" name="ssh_user" value="{{ systems.ssh_user }}" >
                       <label>{{ error.ssh_user.0 }}</label>
                  </td>
                </tr>
                <tr>
                    <td>ssh密码</td>
                    <td><input type="password" name="ssh_pass" value="{{ systems.ssh_pass }}" >
                       <label>{{ error.ssh_pass.0 }}</label>
                  </td>
                </tr>
                 <tr>
                    <td>任务名</td>
                    <td><input type="text" name="task" value="{{ systems.task }}" >
                       <label>{{ error.task.0 }}</label>
                  </td>
                <tr>
                    <td></td>
                    <td><input type="submit" value="提交" >
                    <button style="margin-left: 10%" onclick="location.href='/ansible/systemslist'" type="button" value="取消" >取消</button></td>
              </tr>
            </table>
    </form>
  </section>
</div>

{% endblock %}
